package pira.db.excute;

import pira.db.ui.GraphDBUI;
import pira.db.ui.SubDBUI;

public class GenerateSubDB {

	private GraphDBUI gdbui;
	private SubDBUI sdbui;
	
	public GenerateSubDB() {
		this.gdbui = new GraphDBUI();
		this.sdbui = new SubDBUI();
	}
	
	private void generateDB() {
		sdbui.createFromFullDB(gdbui);
	}

	private void shutDown() {
		gdbui.shutDown();
		sdbui.shutDown();
	}
	public static void main(String[] args) {
		GenerateSubDB gsdb = new GenerateSubDB();
		gsdb.generateDB();
		gsdb.shutDown();
	}

}
